import { Module } from '@nestjs/common';
import { CoffeesService } from './coffees.service';
import { CoffeesController } from './coffees.controller';
import { APP_FILTER } from '@nestjs/core';
import { CoffeesExceptionFilter } from './filters/coffees.filter';

@Module({
  controllers: [CoffeesController],
  providers: [
    CoffeesService,
    {
      provide: APP_FILTER,
      useClass: CoffeesExceptionFilter,
    },
  ],
})
export class CoffeesModule {}
